package org.metasketch.ham.diagrams.links;

import org.metasketch.editor.toolbox.ISemanticFactory;
import org.metasketch.ham.model.HumanActivityParticipationRelationLink;
import org.metasketch.ham.model.HumanActivityParticipationRelationType;
import org.metasketch.ham.model.HumanActivityRelationLink;
import org.metasketch.ham.model.HumanActivityRelationType;
import org.metasketch.model.CommonIdentified;

public class HumanActivityParticipationRelationTypeFactory implements
		ISemanticFactory {

	HumanActivityParticipationRelationType type;

	public HumanActivityParticipationRelationTypeFactory(
			HumanActivityParticipationRelationType type) {
		this.type = type;
	}

	@Override
	public CommonIdentified getNewInstance() {
		HumanActivityParticipationRelationLink unit = new HumanActivityParticipationRelationLink();
		unit.setType(type);
		return unit;
	}

	@Override
	public Class getSemanticType() {
		return HumanActivityParticipationRelationLink.class;
	}

}
